package ui;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JPanel;

import org.w3c.dom.css.RGBColor;

public class SpeedChart extends JPanel{
	public SpeedChart() {
		setBackground(new Color(204, 204, 255));
	}

	private static final long serialVersionUID = -8666461786755357044L;
	
	public void paintComponent(Graphics g) {
		
		Graphics2D g2d = (Graphics2D) g;
		g2d.setColor(Color.BLACK);
		g2d.fillRect(90, 65, 55, 25);
		g2d.setColor(new Color(0, 51,102));
		g2d.fillRect(90, 95, 55, 25);
		g2d.setColor(new Color(0, 51,255));
		g2d.fillRect(90, 125, 55, 25);
		g2d.setColor(new Color(0, 153,255));
		g2d.fillRect(90, 155, 55, 25);
		g2d.setColor(new Color(0, 204,255));
		g2d.fillRect(90, 185, 55, 25);
		g2d.setColor(new Color(153, 204,255));
		g2d.fillRect(90, 215, 55, 25);
		g2d.setColor(new Color(204, 204,255));
		g2d.fillRect(90, 245, 55, 25);
		g2d.setColor(Color.WHITE);
		g2d.fillRect(90, 275, 55, 25);
	}

}
